package org.domain.sigepac.Entity;

import java.util.Set;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToMany;

@Entity
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
@DiscriminatorValue("evasao")
public class GrupoEvasao extends GrupoMotivo {

	private static final long serialVersionUID = -1325710835213702105L;


	@OneToMany(fetch = FetchType.LAZY, mappedBy = "grupo")
	private Set<MotivoEvasao> motivoEvasoes;


	public Set<MotivoEvasao> getEvasoes() {
		return motivoEvasoes;
	}

	public void setMotivoEvasoes(Set<MotivoEvasao> motivoEvasoes) {
		this.motivoEvasoes = motivoEvasoes;
	}

}
